package com.ruoyi.manage.mapper;

import com.ruoyi.common.core.cg.pojo.Community;
import com.ruoyi.common.core.cg.pojo.Leader;
import com.ruoyi.common.core.cg.result.Result;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author 马景昌
 * @create 2025/03/11
 * @description
 */
@Mapper
public interface CommunityMapper {
//    根据leaderid查询社区名称
    public Community selectCommunityName(Integer leaderId);
//    查询全部的社区
    List<Community> show();

    Community selectByLeaderId(Integer id);

    boolean updataByLeaderIdTitle(@Param("id") Integer id,@Param("title") String title);
    List<Community> pageShow(Community community);

    Integer selectOrder0(Integer id);

    Integer selectOrder1(Integer id);

    BigDecimal price(Integer id);

    Community info(Integer id);

    void put(Community community);

    List<Community> All();
}
